import React from 'react';
import { Switch, Route } from 'react-router-dom';
import './styles/app.css';
import Index from './views/Index';

// class App extends Component {
//   render() {
//     return (
//       <Switch>
//         <Route exact path="/" component={Index}></Route>
//         <Route path="/index" component={Index}></Route>
//       </Switch>
//     );
//   }
// }

const App = () => (
  <Switch>
    <Route exact path="/" component={Index}></Route>
    <Route path="/index" component={Index}></Route>
  </Switch>
)

export default App;
